# -*- coding: utf-8 -*-

import MySQLdb


conn = MySQLdb.connect(host="101.200.76.133",user="root",passwd="Abcd1234",port=3306)
conn.select_db('dls_app')

def insertArticle(title,img,content):
    cur = conn.cursor()
    cur.execute("insert into t_article(`title`,`img`,`content`) values(%s,%s,%s)",(title,img,content))
    conn.commit()
    cur.close()

